package com.hn.gege.sys.modules.sys.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author zxy
 * @since 2020-08-07
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("sys_organization")
@ApiModel(value="Organization对象", description="")
public class Organization implements Serializable {

    private static final long serialVersionUID = 1L;
    @NotBlank
    @ApiModelProperty(value = "机构代码", required = true)
    private String code;

    @ApiModelProperty(value = "机构名称", required = true)
    @NotBlank
    private String name;

    @ApiModelProperty(value = "描述")
    private String describe;

    @ApiModelProperty(value = "机构类别")
    private String orgType;

    @ApiModelProperty(value = "机构等级")
    private Integer orgLevel;

    @ApiModelProperty(value = "地址省")
    private String addressProvince;

    @ApiModelProperty(value = "地址市")
    private String addressCity;

    @ApiModelProperty(value = "地址县区")
    private String addressCounty;

    @ApiModelProperty(value = "详细地址")
    private String addressDetall;

    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private Date createDate;

    @ApiModelProperty(value = "创建用户id'")
    private String createUser;

    @ApiModelProperty(value = "最后一次修改时间")
    @TableField(fill = FieldFill.UPDATE)
    private Date modifyDate;

    @ApiModelProperty(value = "最后一次修改用户")
    private String modifyUser;

    @ApiModelProperty(value = "删除标志(1已删除,0正常)")
    @TableLogic
    private Integer deleted;



}
